package request

import (
	"lanxi-mahjong-server/game/interfacer"
	"lanxi-mahjong-server/lib/socket"
	protocol "lanxi-mahjong-server/protocol/pb"

	"github.com/golang/protobuf/proto"
)

func init() {

	socket.Regist(&protocol.CPing{}, ping)
}

func ping(ctos *protocol.CPing, c interfacer.IConn) {
	stoc := &protocol.SPing{Error: proto.Uint32(0)}
	c.Send(stoc)
}
